<template>
<div class="miehaha">
    {{msg}} <br/>
    <aa :title="xxx" @click="show_hello"></aa>
    <bb :content="sss">
      <template v-if="vis" slot="green">来自父模板green</template>
      <p>开啊,,,</p>
      <template v-if="vis" slot="red">来自父模板red</template>
      <div><p>close</p></div>
    </bb>
</div>
</template>

<script>
import aa from './header.vue'
import bb from './v.vue'

export default {
  data () {
    return {
      msg: '江安信息中心',
      xxx:'标题啊标题啊',
      sss:'这是内容啊',
      vis:true,
    }
  },
  components:{aa,bb},
  methods:{
    show_hello(e){
      this.vis = !this.vis
    },
  },
}
</script>

<style lang="scss">

</style>
